package template_pattern;

/**
 * @author: 叶子
 * @date: 2022/03/03 12:50
 * 模板设计模式：第二步，创建模板类的实体类
 **/
public class Cricket extends Game{
    @Override
    void initialize() {
        System.out.println("Cricket Game Initialized! Start playing.");
    }

    @Override
    void startPlay() {
        System.out.println("Cricket Game Started.");
    }

    @Override
    void endPlay() {
        System.out.println("Cricket Game Finished!");
    }
}